package com.mengmaedu.eureka_client.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Tangzhiqiang
 * @Date: 2018/11/26 17:06
 * @Description: 类描述！！！！
 */
@RestController
public class TestController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/test")
    public String test() {
        return "测试 ribbon 使用 ,端口号为"+port;
    }

}
